/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Wasa;

/**
 *
 * @author gianmariospacagna
 */
public class Response {

    private Type type;
    private float value;

    public Response(float value) {
        this.type = Type.DATA;
        this.value = value;
    }

    public Response(String str) {
        if (str.equals("OK")) {
            this.type = Type.OK;
        } else {
            this.type = Type.ERROR;
        }
    }

    public Type getType() {
        return type;
    }

    public float getValue() {
        return value;
    }
    
    
    
}
